<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<html>
	<head>
		<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
		<title>盘库新增-金融风险管理系统</title>
		<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
		<script src="${contextPath}/scripts/common.js" type="text/javascript"></script>
		<script src="${contextPath}/scripts/scriptvalidator.js" type="text/javascript"></script>
		<link href="${contextPath}/styles/default.css" rel="stylesheet" type="text/css" />
		<script language='javascript'>
		function jumpPage(page) {
			var form1 = document.form1;
			form1.action = "<s:property value='contextPath'/>/cs/add.do?currentPage=" + page;
			form1.submit();
		}
		  
	  $(document).ready(function(){
			$("[type=button][name='btn_submit']").click(function(e){
				$("#operate").val(e.target.id);
				if(e.target.id=='checkin'){
					if($("#shopUser").length==0||$("#none_tr").length>0){
						if($("#shopUser").length==0&&$("#shopUser_tr").find("font").length==0){
							$("#shopUser_tr").append("<font color='red'>驻店顾问不能为空</font>");
						}
						return false;
					}
				}
				var form1 = document.form1;
				form1.action ="<s:property value='contextPath'/>/cs/create.do";
				form1.submit();
			}); 
			
			});
		</script>
	</head>
	<body  leftmargin='8' topmargin='8'>
	<div class="navigation">
	    <span><a href="javascript:window.history.back();"><img src="${contextPath}/images/back_nav_btn.png" /></a>
	    <a href="javascript:window.history.back();">返回</a>
	    <a href="javascript:window.history.forward();"><img src="${contextPath}/images/go_nav_btn.png" /></a>
	     <a href="javascript:window.history.forward();">前进</a>
	    <a href="javascript:window.location.reload();"><img src="${contextPath}/images/refresh_nav_btn.png" /></a>
	     <a href="javascript:window.location.reload();">刷新</a>
	    </span>盘库管理&gt;&gt;盘库&gt;&gt;<s:if test="entity.id==null">新增</s:if><s:else>编辑</s:else>
    
  	</div>
  	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
			<tr>
				<td align="center" valign="top" bgcolor="#FFFFFF">
					<div class="xt_main_right_center">
					<form id="form1" name="form1" action="create.do" method="post"  enctype="multipart/form-data" onSubmit="return Validator.Validate(this,3)">
						<%@ include file="form.jsp"%>
					</form>
					</div>
				</td>
			</tr>
		</table>
	</body>
</html>